﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class SceneInfo : ScriptableObject
{
	public List<Info> scenesInfos = new List<Info>();

	[System.Serializable]
	public class Info
	{
		public enum Type
		{
			ChangeFloor,
			ExistsBuilding,
			EntersBuilding,
		}

		public SceneID id;
		public string name;
		public Type type;

		public Info(string _id)
		{
			id = (SceneID)System.Enum.Parse(typeof(SceneID), _id);
		}

		public string GetTitle()
		{
			switch (type)
			{
			case Type.ChangeFloor:
				return "Change Floor";

			case Type.ExistsBuilding:
				return "Exit Building";

			case Type.EntersBuilding:
				return "Enter Building";
			}

			return "";
		}
	}
}
